package com.jf.springboot.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-12-06
 * Time:14:06
 */
@RequestMapping("/error")
@RestController
public class JFErrorController {
    @GetMapping("/err1")
    public String error1() {
        int i = 1 / 0;
        return "success";
    }
    @PostMapping("/err2")
    public String error2() {
        return "success";
    }
}
